import 'package:dk_flutter_base/dk_core.dart';
import 'package:dk_flutter_base/dk_ui.dart';

class ToastWidget extends StatelessWidget {
  final String title;
  ToastWidget({this.title = ""});
  @override
  Widget build(BuildContext context) {
    return  Center(
      child: Container(
        decoration: BoxDecoration(
          color: Color.fromRGBO(2, 2, 2, 0.7),
          borderRadius: BorderRadius.all(Radius.circular(5))
        ),
        width: 200,
        child: Padding(
          padding: const EdgeInsets.all(15.0),
          child: Text(
            this.title,
            textAlign: TextAlign.center,
            overflow: TextOverflow.visible,
            style: TextStyle(
                color: Colors.white, fontSize: 16, fontWeight: FontWeight.normal),
          ),
        ),
      ),
    );
  }
}
